<template>
  <div id="subpage">

    <el-col :span="24" class="warp-breadcrum">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item><b>小程序</b></el-breadcrumb-item>
        <el-breadcrumb-item>站点配置</el-breadcrumb-item>
      </el-breadcrumb>
    </el-col>

    <div class="content">
      <div class="xcx-head">
        <div>
          <span class="font14">关键词：</span>
          <el-input class="w251 font14" placeholder="请输入名称" v-model="keys" clearable> </el-input>
          <el-button class="mar_L_20" type="primary" @click="search()" plain>搜索</el-button>
        </div>

        <div>
          <el-button type="primary" @click="add()">添加配置</el-button>
        </div>
      </div>
      <div class="xcx-content">
        <!--列表-->
        <el-table border :data="tableData" stripe style="width: 100%">
          <el-table-column prop="name" label="配置名"></el-table-column>
          <el-table-column prop="value" label="配置值"></el-table-column>
          
          <el-table-column label="操作">
            <div slot-scope="scope" class="dis_fd font14">
              <span class="text primary" @click="edit(scope.row.id)">编辑</span>
              <span class="text danger" @click="del_item(scope.row.id)">删除</span>
            </div>
          </el-table-column>
        </el-table>
        <!--分页-->
        <div class="paging">
          <el-pagination class="left" @current-change="handleCurrentChange" :current-page="page" background layout="prev, pager, next" :total="count"></el-pagination>
          <span class="demonstration left">共 {{ count }} 条 每页10条</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script src="../../../static/js/set_up/site.js"></script>

<style scoped>

</style>
